package yo.latyoo.hokage.tools.parameter;

import java.io.Serializable;

public class TriggerParam implements Serializable {

    private Long jobId; //job任务Id
    private Long traceId; //job log Id

    private String handlerMethod; //触发方法
    private String handlerParams; //job参数
    private int timeout; //超时时间
    private int retryTimes;

    private int broadcastIndex;
    private int broadcastTotal;

    public TriggerParam(){}
    public TriggerParam(Long jobId,Long traceId,String handlerParams){
        this.jobId = jobId;
        this.traceId = traceId;
        this.handlerParams = handlerParams;
    }

    @Override
    public String toString() {
        return "TriggerParam{" +
                "jobId=" + jobId +
                ", traceId=" + traceId +
                ", handlerMethod='" + handlerMethod + '\'' +
                ", handlerParams='" + handlerParams + '\'' +
                ", timeout=" + timeout +
                '}';
    }

    public Long getJobId() {
        return jobId;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    public String getHandlerMethod() {
        return handlerMethod;
    }

    public void setHandlerMethod(String handlerMethod) {
        this.handlerMethod = handlerMethod;
    }

    public String getHandlerParams() {
        return handlerParams;
    }

    public void setHandlerParams(String handlerParams) {
        this.handlerParams = handlerParams;
    }

    public int getRetryTimes() {
        return retryTimes;
    }

    public void setRetryTimes(int retryTimes) {
        this.retryTimes = retryTimes;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public Long getTraceId() {
        return traceId;
    }

    public void setTraceId(Long traceId) {
        this.traceId = traceId;
    }

    public int getBroadcastIndex() {
        return broadcastIndex;
    }

    public void setBroadcastIndex(int broadcastIndex) {
        this.broadcastIndex = broadcastIndex;
    }

    public int getBroadcastTotal() {
        return broadcastTotal;
    }

    public void setBroadcastTotal(int broadcastTotal) {
        this.broadcastTotal = broadcastTotal;
    }
}
